package cn.com.jinhao.provider.business.fallback;

import cn.com.jinhao.hotline.commons.base.constant.SystemConstant;
import cn.com.jinhao.hotline.commons.util.RestResponse;
import cn.com.jinhao.provider.business.service.FeignService;
import org.springframework.stereotype.Component;

/**
 * @author ShaneWei
 */
@Component
public class FeignClientFallback implements FeignService {
    @Override
    public String queryDeptNameByCode(String code) throws Exception {
        throw new Exception("服务器异常");
    }

    @Override
    public String queryUserNameByCode(String code) throws Exception {
        throw new Exception("服务器异常");
    }

    @Override
    public boolean checkUserByCodeAndDept(String code, String deptCode) throws Exception {
        throw new Exception("服务器异常");
    }

    @Override
    public String getUsernameByCode(String code) throws Exception {
        throw new Exception("服务器异常");
    }

    @Override
    public RestResponse queryLinkManByDeptCode(String deptCode) throws Exception {
        throw new Exception("服务器异常");
    }
}
